 
cd "c:\program files\common files\microsoft shared\web server extensions\12\bin\"

 

stsadm -o addeventreceiver -ReceiverClass ISLEventHandlers.DeleteTaskReceiver -ReceiverAssembly ISLPreventTaskDelete -Version 1.0.0.0 -Culture neutral -PublicKeyToken 5957735b8821dba4 -SiteCollection http://islserver2008 -website bookworm -ListName Tasks -AddEventType itemdeleting


rem list what we have done   
stsadm -o listeventreceivers -SiteCollection http://islserver2008 -website bookworm -listName "Tasks" 


pause
 